home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-11-30 | 6.0 KB | 162 lines | [TEXT/MPS ] |
- ; File: Video.a
- ;
- ; Copyright: © 1983-1993 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: System 7.1 for ETO #11
- ; Created: Tuesday, March 30, 1993 18:00
- ;
- ;___________________________________________________________________________
-
- IF &TYPE('__INCLUDINGVIDEO__') = 'UNDEFINED' THEN
- __INCLUDINGVIDEO__ SET 1
- ;
- ; Video sResource parameter Id's
- ;
-
- mBaseOffset EQU 1 ;Id of mBaseOffset.
- mRowBytes EQU 2
- mBounds EQU 3
- mVersion EQU 4
- mHRes EQU 5
- mVRes EQU 6
- mPixelType EQU 7
- mPixelSize EQU 8
- mCmpCount EQU 9
- mCmpSize EQU 10
- mPlaneBytes EQU 11
- ;* mTable EQU 12
- ;* mPageCnt EQU 13
- mVertRefRate EQU 14
-
-
- mVidParams EQU 1 ;Video parameter block id.
- mTable EQU 2 ;Offset to the table.
- mPageCnt EQU 3 ;Number of pages
- mDevType EQU 4 ;Device Type
-
-
- ;
- ; Video sResource List Id's
- ;
-
- oneBitMode EQU 128 ;Id of OneBitMode Parameter list.
- twoBitMode EQU 129 ;Id of TwoBitMode Parameter list.
- fourBitMode EQU 130 ;Id of FourBitMode Parameter list.
- eightBitMode EQU 131 ;Id of EightBitMode Parameter list.
- sixteenBitMode EQU 132 ;Id of SixteenBitMode Parameter list.
- thirtyTwoBitMode EQU 133 ;Id of ThirtyTwoBitMode Parameter list.
-
- firstVidMode EQU 128 ; If we ever decide to add/drop a modes
- secondVidMode EQU 129 ; in a particular card, it makes more
- thirdVidMode EQU 130 ; sense to name the modes in an ordinal
- fourthVidMode EQU 131 ; fashion rather than in a cardinal
- fifthVidMode EQU 132 ; one. (The RBV equates do this.) <14>
- sixthVidMode EQU 133
-
- spGammaDir EQU 64
- spVidNamesDir EQU 65 ; <12>
-
- ;
- ; Control Codes
- ;
-
- cscReset EQU 0
- cscKillIO EQU 1 ; <15>
- cscSetMode EQU 2
- cscSetEntries EQU 3
- cscSetGamma EQU 4 ; <12>
- cscGrayPage EQU 5
- cscGrayScreen EQU 5 ; This is what C&D 2 calls it. <12>
- cscSetGray EQU 6
- cscSetInterrupt EQU 7 ; <12>
- cscDirectSetEntries EQU 8 ; <12>
- cscSetDefaultMode EQU 9 ; <12>
-
- ;
- ; Status Codes
- ;
-
- cscGetMode EQU 2
- cscGetEntries EQU 3
- cscGetPageCnt EQU 4
- cscGetPages EQU 4 ; This is what C&D 2 calls it. <12>
- cscGetPageBase EQU 5
- cscGetBaseAddr EQU 5 ; This is what C&D 2 calls it. <12>
- cscGetGray EQU 6 ; <12>
- cscGetInterrupt EQU 7 ; <12>
- cscGetGamma EQU 8 ; <12>
- cscGetDefaultMode EQU 9 ; <12>
-
-
- csGTable EQU 0 ; [long] pointer to gamma table
- csTable EQU 0 ; [long] pointer to CLUT
- csStart EQU 4 ; [word] entry start number
- csCount EQU 6 ; [word] entry count to change
-
- ;
- ; mVidParams block
- ;
-
- VPBlock RECORD 0 ;Video Parameters block.
- vpBaseOffset DS.L 1 ;Offset to page zero of video RAM (From minorBaseOS).
- vpRowBytes DS.W 1 ;Width of each row of video memory.
- vpBounds DS.W 4 ;BoundsRect for the video display (gives dimensions).
- vpVersion DS.W 1 ;PixelMap version number.
- vpPackType DS.W 1 ;
- vpPackSize DS.L 1 ;
- vpHRes DS.L 1 ;Horizontal resolution of the device (pixels per inch).
- vpVRes DS.L 1 ;Vertical resolution of the device (pixels per inch).
- vpPixelType DS.W 1 ;Defines the pixel type.
- vpPixelSize DS.W 1 ;Number of bits in pixel.
- vpCmpCount DS.W 1 ;Number of components in pixel.
- vpCmpSize DS.W 1 ;Number of bits per component
- vpPlaneBytes DS.L 1 ;Offset from one plane to the next.
- vpBlockSize EQU *
- ENDR
-
-
-
- VDSetEntryRecord RECORD 0
- csTable DS.L 1 ; ^ColorSpec - (long) Pointer to an array of color specs
- csStart DS.W 1 ; INTEGER - (word) Which spec in array to start with, or -1
- csCount DS.W 1 ; INTEGER - (word) Number of color spec entries to set
- ENDR
-
- VDPageInfo RECORD 0
- csMode DS.W 1 ; INTEGER - (word) mode within device
- csData DS.L 1 ; LONGINT - (long) data supplied by driver
- csPage DS.W 1 ; INTEGER - (word) page to switch in
- csBaseAddr DS.L 1 ; Ptr - (long) base address of page
- ENDR
-
- VDSizeInfo RECORD 0
- csHSize DS.W 1 ; INTEGER - (word) desired/returned h size
- csHPos DS.W 1 ; INTEGER - (word) desired/returned h position
- csVSize DS.W 1 ; INTEGER - (word) desired/returned v size
- csVPos DS.W 1 ; INTEGER - (word) desired/returned v position
- ENDR
-
- VDSettings RECORD 0
- csParamCnt DS.W 1 ; INTEGER - (word) number of params
- csBrightMax DS.W 1 ; INTEGER - (word) max brightness
- csBrightDef DS.W 1 ; INTEGER - (word) default brightness
- csBrightVal DS.W 1 ; INTEGER - (word) current brightness
- csCntrstMax DS.W 1 ; INTEGER - (word) max contrast
- csCntrstDef DS.W 1 ; INTEGER - (word) default contrast
- csCntrstVal DS.W 1 ; INTEGER - (word) current contrast
- csTintMax DS.W 1 ; INTEGER - (word) max tint
- csTintDef DS.W 1 ; INTEGER - (word) default tint
- csTintVal DS.W 1 ; INTEGER - (word) current tint
- csHueMax DS.W 1 ; INTEGER - (word) max hue
- csHueDef DS.W 1 ; INTEGER - (word) default hue
- csHueVal DS.W 1 ; INTEGER - (word) current hue
- csHorizDef DS.W 1 ; INTEGER - (word) default horizontal
- csHorizVal DS.W 1 ; INTEGER - (word) current horizontal
- csHorizMax DS.W 1 ; INTEGER - (word) max horizontal
- csVertDef DS.W 1 ; INTEGER - (word) default vertical
- csVertVal DS.W 1 ; INTEGER - (word) current vertical
- csVertMax DS.W 1 ; INTEGER - (word) max vertical
- ENDR
-
- ENDIF ; ...already included